package org.darkforest.enums;

/**
 * EmployeeLevel
 * Created by Justin on 15/5/23.
 */
public enum MerchantLevel {
    LEVEL1, LEVEL2, LEVEL3;

    public MerchantLevel raiseLevel(MerchantLevel currentLevel) throws IllegalArgumentException {
        switch (currentLevel) {
            case LEVEL3: return LEVEL2;
            case LEVEL2: return LEVEL1;
            default: throw new IllegalArgumentException("Cannot raise a level 1 merchant");
        }
    }
}
